Skip to main content

All Questions

7votes
1answer
206views

Robin Hood Hash Table

The following code comes from an intrusive container library I am working on in C23. So far, it works correctly due to extensive testing and sample programs I have written with it. I have implemented ...
Alex Lopez's user avatar
0votes
1answer
56views

How do I increase the memory efficiency of this longest substring implementation? (C++)

I'm practicing my coding on leetcode. I implemented the following algorithm to solve the longest substring problem: ...
MrSynAckSter's user avatar
3votes
3answers
180views

Optimize Memory Java String Array

I was trying to solve one programming challenge : First input is a list of connections which is made of pair of IPv4 address. Each IP has its own state which starts with false, each connection also ...
Learner's user avatar
3votes
1answer
1kviews

Counting subsets with sum not exceeding some limit

I am facing a variation of a subset sum problem. I have to count the number of subsets with sum less than or equal to some integer(limit). I think the optimal solution for this problem would be the ...
Y N's user avatar
  • 133
3votes
1answer
134views

Haskell requires more memory than Python when I read map from file. Why?

I have this simple code in Python: ...
Alexander Razorenov's user avatar

close